﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ChangeFile
{
    class Program
    {
        //如果DB中没有taskID了，再改变文件
        static void Main(string[] args)
        {
            string path = "D:\\test\\flag.txt";
            FileStream fs = new FileStream(path, FileMode.Truncate);
            StreamWriter w = new StreamWriter(fs);
            w.Write("hello");
            w.Close();
            fs.Close();
        }
    }
}
